package com.demo.druid.component.datasource.annotation;

import java.lang.annotation.*;

/**
 * @author wangjianhua
 * @Description
 * @date 2021/9/1/001 14:33
 **/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSource {

    /**
     * 不鼓励用name
     * 最好直接用dataSourceKey 更加规范
     * @return
     */
    @Deprecated
    String name() default "";

    DataSourceKey dataSourceKey();
}
